<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引用外部的脚本文件 -->
    <script src="js/basic.js"></script>
</head>
<body>
    <!-- 调用basic的函数，用按钮输出 -->
    <!-- onclick 单击调用事件 -->
    <button onclick="box()">ok</button>
    <p onclick="box()">hh</p>
</body>
</html>
